package org.yenn.pattern.cor.handler;

/*
 * 销售小组长， 可以批准15%以内的折扣
 */
public class Lead extends PriceHandler {

	@Override
	public void processDiscount(float discount) {
		if(discount<=0.15){
			System.out.format("%s批准了折扣:%.2f%n",this.getClass().getName(),discount);
		}else{
			System.out.format("%s----:%.2f%n",this.getClass().getName(),discount);
			successor.processDiscount(discount);
		}

	}

}
